package paul.idtech.lostTraveller.controller;

import paul.idtech.lostTraveller.model.Game;

public class CombatController {

	//variables
	Game g;
	
	
	
	
	//constructor
	public CombatController(Game g){
		
		this.g = g;
		
		
		
		
		
	}
	public void process(){
		
		if(g.player.getEnergy()>=g.player.attackCost){
			
			g.player.damageEnergyBy(g.player.attackCost);
			g.dr.creature.damageHealthBy(g.player.getEquippedItem().getDamage());
			
			
		}
		
	}
	
	
	
}
